package com.luoran.car.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;

import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 车辆管理表
 * @TableName VEHICLES
 */
@TableName(value ="VEHICLES")
@Data
@Document(indexName = "vehicles")
public class Vehicle implements Serializable {
    /**
     * 车辆唯一标识
     */
    @TableId(type = IdType.AUTO)
    @Id
    private Integer vehicleId;

    /**
     * 车牌号
     */
    private String plateNumber;

    /**
     * 车型
     */
    private String vehicleType;

    /**
     * 颜色
     */
    private String color;

    /**
     * 车辆品牌
     */
    private String vehicleBrand;

    /**
     * 车联系统版本
     */
    private String vehicleEdition;

    /**
     * 制造年份
     */

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date makeYear;

    /**
     * 故障说明
     */
    private Integer faultId;


    /**
     * 车辆图片
     */
    private String pic;

    /**
     * 日租金
     */
    private Integer dayPrice;

    @TableField(exist = false)
    private Integer startdayPrice;
    @TableField(exist = false)
    private Integer enddayPrice;

    /**
     * 省id
     */
    private Integer provinceId;

    /**
     * 市id
     */
    private Integer cityId;

    /**
     * 区id
     */
    private Integer districtId;

    /**
     * 状态
     */
    private Integer status;

    /**
     * 故障说明
     */
    @TableField(exist = false)
    private String faultName;
    @TableField(exist = false)
    private String provinceName;
    @TableField(exist = false)
    private String cityName;
    @TableField(exist = false)
    private String districtName;





    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}
